<template>
  <el-dialog title="查看秘钥" append-to-body :close-on-click-modal="false" v-model="visible" style="height:400px">
    <div>秘钥：{{dataKey.secret}}</div>
    <br>
    <div>停车场id：{{dataKey.id}}</div>
  </el-dialog>
</template>

<script>
import { getObj } from '@/api/stop/parking'
export default {
  data () {
    return {
      visible: false,
      dataKey: []
    }
  },
  methods: {
    init (id) {
      this.visible = true
      getObj(id).then(response => {
        this.dataKey = response.data.data
        // console.log(this.dataKey);
      }).catch(err => {
        console.log(err);
      })
    }
  }
}
</script>

<style>
</style>